<?php 
class candidateHistoryAction extends AdminMaster{
	public function execute($request){
		$candidate = CandidatesTable::getDataById($this->data['id']);
		
		if($this->data['action'] == ADMIN_DEFINED::AJAX_HISTORY && count($candidate) > 0){
			$this->data['history'] = CandidateToJobsTable::getListByCandidateId($this->data['id']);
			#print_r($this->data); die;
		}else{
			$this->data['error'] = __('hacking_attemp',null,'table_list');
		}
		$this->setVar('data', $this->data);
	}
}